import 'package:boss/color_constant.dart';
import 'package:flutter/material.dart';

class ChartsColorUtil {
  static const List<Color> defaultColors = [
    ColorConstant.ff5770f6,
    ColorConstant.fbd43,
    ColorConstant.f4ebe,
    ColorConstant.fb787e,
    ColorConstant.f5ba0,
    ColorConstant.f7a38,
    ColorConstant.fc031,
    ColorConstant.be850,
    ColorConstant.d5ec68,
    ColorConstant.ff0cdc61,
    ColorConstant.afb9e,
    ColorConstant.ff38,
    ColorConstant.f1c89fe,
    ColorConstant.ff0dc2ff,
    ColorConstant.ff07cdfc,
    ColorConstant.ffe741ff,
    ColorConstant.f645cff,
    ColorConstant.ffaa3ae0,
    ColorConstant.ffab67ff,
    ColorConstant.ff733be5,
  ];

  static Color getColorIndex(int index) {
    var temp = index % defaultColors.length;
    return defaultColors[temp];
  }
}